package world.xuewei.service;

import world.xuewei.model.entity.CommodityReview;
import java.util.List;

public interface CommodityReviewService {

    /**
     * 添加评论
     */
    boolean addReview(CommodityReview review);

    /**
     * 删除评论
     */
    boolean deleteReview(Long id, Long userId);

    /**
     * 获取商品评论列表
     */
    List<CommodityReview> getReviewsByCommodityId(Long commodityId);
}